home *** CD-ROM | disk | FTP | other *** search
- { OPERFFT - does FFT on operator input waveform }
-
- dur = 5;
- step=durval/1023; {set STEP size so get 1024 data points}
-
- fft(oper); {prompt operator for values till F6 then do FFT}
-
- { Output the FFT results }
- label = "REAL PART";
- plot(fftre(t));
- pause;
- erase;
- label = "IMAGINARY PART";
- plot(fftim(t));
- pause;
- label = "MAGNITUDE";
- trace=vline; {use verticle lines to 0 for trace}
- erase;
- plot(fftmag(t));
- pause;
- erase;
- label="PHASE";
- ymin=-2; ymax=2;
- trace=line;
- plot(fftphs(t));